import java.util.Scanner;

public class TestThree {

    public static void main(String[] args) {
        //写上一个提示语
        System.out.println("请输入一个整数：");
        //创建一个输入器
       Scanner scanner =new Scanner(System.in);
       //接受输入的内容
       int num = scanner.nextInt();
        System.out.println("num="+num);
        System.out.println("请输入一个小数");
        double num2 = scanner.nextDouble();
        System.out.println("num2="+num2);
        //字符串
        System.out.println("请输入一个名字");
        String name = scanner.next();
        System.out.println("name="+name);
        //关闭 流
        scanner.close();





    }
}
